Deployment
Deployment is the process of making a BindAI project available for production use. A deployed project includes its applications, agents, workflows, tools, knowledge, configuration, and runtime services, allowing users or external systems to interact with it reliably. BindAI is designed so the same project can run locally during development and scale to production environments with minimal changes.Deployment Architecture
A typical deployment consists of several layers.What Gets Deployed?
A BindAI deployment typically includes:- project configuration
- applications
- agents
- workflows
- shared tools
- knowledge resources
- memory providers
- model provider configuration
Development vs Production
Development focuses on rapid iteration. Production focuses on reliability.
The project structure remains the same in both environments.
Configuration
Deployment-specific settings should be stored outside application logic. Examples include:- API keys
- model selection
- provider endpoints
- database connections
- environment variables
- feature flags
Environment Variables
Sensitive information should be supplied through environment variables. Examples:Model Providers
Different environments may use different model providers. Example:Knowledge Resources
Knowledge bases should be indexed before deployment. Typical deployment process:Scheduled Workflows
Production deployments often execute scheduled workflows automatically. Examples include:- nightly reports
- document indexing
- data synchronization
- monitoring tasks
Human Tasks
Applications using Human Tasks require a mechanism for users to review and complete pending tasks. Conceptually:Logging
Production deployments should log important events. Examples include:- workflow execution
- agent requests
- tool execution
- retries
- timeout events
- human task creation
- provider errors
Monitoring
Monitoring provides visibility into production behavior. Useful metrics include:- request count
- workflow duration
- model latency
- retry frequency
- timeout frequency
- tool failures
- provider usage
- token consumption
Scaling
As demand grows, applications can scale independently.Reliability
Production systems should combine multiple reliability features. Examples include:- retry policies
- timeout policies
- scheduled execution
- health monitoring
- human approval
- structured logging
Deployment Checklist
Before deploying a project:- Validate all workflows.
- Configure model providers.
- Register required tools.
- Index knowledge resources.
- Configure memory providers.
- Store secrets securely.
- Enable logging and monitoring.
- Test scheduled workflows.
- Verify Human Task handling.
- Confirm environment configuration.
Best Practices
- Keep application logic independent of deployment details.
- Store secrets outside the project source code.
- Deploy knowledge indexes separately from application startup.
- Monitor production metrics continuously.
- Use retries and timeouts appropriately.
- Test workflows before production releases.
- Maintain separate configurations for development, staging, and production.
